package com.it.base.core.system.user.model.covert;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.it.base.core.system.user.model.dto.SysUserDTO;
import com.it.base.core.system.user.model.dto.SysUserListDTO;
import com.it.base.core.system.user.model.entity.SysUser;
import com.it.base.core.system.user.model.from.SysUserSaveFormDTO;
import com.it.base.core.system.user.model.from.SysUserUpdateFormDTO;

@Mapper
public interface SysUserCovert {

	SysUserCovert INSTANCE = Mappers.getMapper(SysUserCovert.class);

	List<SysUserListDTO> entity2DTOList(List<SysUser> datas);

	SysUser from2Entity(SysUserSaveFormDTO data);

	SysUserDTO entity2DTO(SysUser data);

	SysUser from2Entity(SysUserUpdateFormDTO data);
}
